package com.n4v1.pko.server.network;

import java.io.BufferedReader;
import java.io.IOException;

import com.n4v1.pko.server.model.actor.Character;

public class NetReader implements Runnable {
	
	private BufferedReader in;
	private Character c;
	private String message;
	
	public NetReader(BufferedReader in, Character c) {
		super();
		this.in = in;
		this.c = c;
	}

	@Override
	public void run() {
		System.out.println("NetReader started.");
		try {
			while(true) {
				this.message = in.readLine();
				if(message.contains(":")) {
					String[] command = message.split(":");
					if(command[0] == "moving")
						
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
